
package com.timber.util;

import java.sql.*;

/**
 *
 *	Class to make String look/act as SLDataOblect.
 *
 *	( SearchableComboBox is one place... )
 */
public class SLString extends SLDataObjectAdaptor
{

  private String str;

  /**
   *	load first column from result set
   */
  public boolean load( ResultSet rs ) throws SQLException
  {
    str  = rs.getString( 1 );
    return true;
  }

    public SLString( String s )
    {
	str = s;
    }

    public String listString()
    {
	return str;
    }

    public String toString()
    {
	return str;
    }

}
